<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="../common.jsp"%>
<%@ page import="cn.firstsoft.firstframe.admin.PropertyFile"%>
<%@ page import="org.springside.core.Constants" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>管理控制台 - 环境设置 - 档案系统集成设置</title>
<%@ include file="/common/meta2.jsp"%>
<link href="../style.css" type="text/css" rel=stylesheet>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<script type="text/javascript" language="javascript">
	function checkRtx() {
		if (document.archiveForm.archives_ip.value == '') {
			alert("集成档案系统的服务器ip地址不能为空！");
			return false;
		}
		return true;
	}	
</script>
<%
String archives = PropertyFile.readValue("firstframe.properties","constant.archives")==null?"":PropertyFile.readValue("firstframe.properties","constant.archives");
String archives_ip = PropertyFile.readValue("firstframe.properties","constant.archives_ip")==null?"":PropertyFile.readValue("firstframe.properties","constant.archives_ip");
String archives_port = PropertyFile.readValue("firstframe.properties","constant.archives_port")==null?"":PropertyFile.readValue("firstframe.properties","constant.archives_port");
String archives_context = PropertyFile.readValue("firstframe.properties","constant.archives_context")==null?"":PropertyFile.readValue("firstframe.properties","constant.archives_context");
%>

<FORM method="post" name="archiveForm" action="archive_update.jsp" onsubmit="return checkRtx();">
	<table width="100%" align="center" >
		<TR>
			  <TH class=listViewPaginationTdS1  align=left colSpan=4>
			   集成档案系统设置(括号内的表示当前内存值,输入框中为文件值)</TH></TR>
		<TR>
		<tr>
			<td class=dataLabel width="30%" align="right">是否集成档案系统：</td>
			<td width="2%">(<%="true".equals(Constants.ARCHIVES)?"是":"否"%>)</td>
			<td class=dataField width="10%">
				<INPUT type="radio" name="archives" value="true" <%="true".equals(archives)?"checked":""%>/>是

				<INPUT type="radio" name="archives" value="false" <%=!"true".equals(archives)?"checked":""%>/>否

			</td>
			<td align="left">是否集成档案系统</td>
		</tr>
		<tr>
			<td class=dataLabel width="30%" align="right">集成档案系统的服务器ip地址：</td>
			<td width="2%">(<%=Constants.ARCHIVES_IP%>)</td>
			<td class=dataField><INPUT type="text" name="archives_ip" value="<%=archives_ip%>" /></td>
			<td align="left">集成档案系统的服务器ip地址</td>
		</tr>
		<tr>
			<td class=dataLabel width="30%" align="right">集成档案系统的服务端口：</td>
			<td width="2%">(<%=Constants.ARCHIVES_PORT%>)</td>
			<td class=dataField><INPUT type="text" name="archives_port" value="<%=archives_port%>" maxlength="20"/></td>
			<td align="left">集成档案系统的服务端口</td>
		</tr>
		<tr>
			<td class=dataLabel width="30%" align="right">集成档案系统的上下文根：</td>
			<td width="2%">(<%=Constants.ARCHIVES_CONTEXT%>)</td>
			<td class=dataField><INPUT type="text" name="archives_context" value="<%=archives_context%>" /></td>
			<td align="left">集成档案系统的上下文根</td>
		</tr>	
		<tr>
			<td></td>
			<td></td>
			<td>
				<input class=button type=submit value="&nbsp;提&nbsp;&nbsp;交&nbsp;" />
				<input class=button type=reset value="&nbsp;重&nbsp;&nbsp;置&nbsp;" />
			</td>
			<td></td>
		</tr>				
	</table>
</FORM>
</body>
</html>
